import http from '@/utils/http2.js'

/**
 * 分类树
 * @returns 
 */
export function queryTree(){
    return http.get("/api/enterpriseCategory/queryTree")
}

/**
 * 分类列表
 */
export function queryList(data){
    return http.post("/api/enterpriseCategory/query",data)
}

/**
 * 删除分类
 */
export function deleteCategory(code){
    return http.delete("/api/enterpriseCategory/delete",code)
}